import request from '@/utils/request'

// 查询支付订单信息列表
export function listInfo(query) {
  return request({
    url: '/order/info/list',
    method: 'get',
    params: query
  })
}

// 查询少年派权益卡订单信息列表
export function listSnpInfo(query) {
  return request({
    url: '/order/info/snp/list',
    method: 'get',
    params: query
  })
}
// 查询支付订单信息详细
export function getInfo(id) {
  return request({
    url: '/order/info/' + id,
    method: 'get'
  })
}

// 新增支付订单信息
export function addInfo(data) {
  return request({
    url: '/order/info',
    method: 'post',
    data: data
  })
}

// 修改支付订单信息
export function updateInfo(data) {
  return request({
    url: '/order/info',
    method: 'put',
    data: data
  })
}

// 删除支付订单信息
export function delInfo(id) {
  return request({
    url: '/order/info/' + id,
    method: 'delete'
  })
}

// 导出支付订单信息
export function exportInfo(query) {
  return request({
    url: '/order/info/export',
    method: 'get',
    params: query
  })
}

//
export function countInfo(query) {
  return request({
    url: '/order/info/count',
    method: 'get',
    params: query
  })
}

// 查询权益卡订单信息列表
export function listQyk(query) {
  return request({
    url: '/order/info/qyk/list',
    method: 'get',
    params: query
  })
}

// 权益卡订单信息退款
export function editPrice(id, value) {
  return request({
    url: '/order/info/editOrder?id=' + id + "&discount=" + value,
    method: 'get'
  })
}

//审核
export function audit(data) {
  return request({
    url: '/order/orderVisitor/audit',
    method: 'post',
    data: data
  })
}

// 发送密码
export function sendPwd(data) {
  return request({
    url: '/order/orderVisitor/sendPwd',
    method: 'post',
    data: data
  })
}

